// router/index.js
import { createRouter, createWebHistory } from 'vue-router'


const routes = [

  { path: '/addarticle', component: () => import('@/views/addarticle.vue') },
  { path: '/articleList', component: () => import('@/views/articleList.vue') },
  { path: '/pinyin', component: () => import('@/views/pinyin.vue') },
  { path: '/', component: () => import('@/views/articleList.vue') }
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

export default router